home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3group.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.1 KB  |  83 lines

  1.  
  2. // JavaScript wrapper for r3group.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_GROUP_H = 1;
  7. include("real/objects/r3prim.js")
  8.  
  9.  
  10. var R3CLID_GROUP = 1403;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Group changed, update target points accordingly
  16.  
  17. R3GROUPM_UPDATETARGETS = 1403001;
  18.  
  19. function mR3GROUPM_UPDATETARGETS() {
  20.   DoA(this.r3obj, 1403001, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Invert group references - a referred point becomes unreferred and vise versa.
  24.  
  25. R3GROUPM_INVERTREFERENCES = 1403002;
  26.  
  27. function mR3GROUPM_INVERTREFERENCES() {
  28.   DoA(this.r3obj, 1403002, 0, R3TID_INTEGER, 0);
  29. }
  30.  
  31. // Description: Apply XOR boolean operation between referred points. as a result, mutually referred points are
  32. //      removed from the given sub groups.
  33. // p3: Object, array of groups    
  34.  
  35. R3GROUPM_XOR = 1403003;
  36.  
  37. function mR3GROUPM_XOR(p3) {
  38.   DoA(this.r3obj, 1403003, p3, R3TID_OBJECT, 0);
  39. }
  40.  
  41. // Description: Enumerate target points. Calls the given hook: int hook(R3OBJ *target, R3INT point_index, void *data);
  42. // Returns: Boolean, true if all points were enumarated
  43. // p3: Tag[], R3RA_Hook, R3RA_HookData,    
  44.  
  45. R3GROUPM_ENUMTARGETPOINTS = 1403004;
  46.  
  47. function mR3GROUPM_ENUMTARGETPOINTS(p3) {
  48.   return   Do(this.r3obj, 1403004, p3, R3TID_TAG, R3TNF_ARRAY);
  49. }
  50.  
  51.  
  52.  
  53.  
  54. R3GROUPA_PointCount = 1403501;
  55. function SetR3GROUPA_PointCount(value) {
  56.   R3Set(this.r3obj, R3GROUPA_PointCount, value, R3TID_INTEGER, 0); 
  57. }
  58.  
  59. function GetR3GROUPA_PointCount() {
  60.   return R3Get(this.r3obj, R3GROUPA_PointCount, R3TID_INTEGER, 0); 
  61. }
  62.  
  63. var R3GRHT_VERTEX = 0;
  64.  
  65.  
  66. function r3Group () { 
  67.    this.base = r3God;
  68.    if(arguments.length) {
  69.       this.base(R3CLID_GROUP, arguments);
  70.    }
  71.    // Methods
  72.    this.UPDATETARGETS=mR3GROUPM_UPDATETARGETS;
  73.    this.INVERTREFERENCES=mR3GROUPM_INVERTREFERENCES;
  74.    this.XOR=mR3GROUPM_XOR;
  75.    this.ENUMTARGETPOINTS=mR3GROUPM_ENUMTARGETPOINTS;
  76.  
  77.    // Attributes
  78.    this.GetPointCount=GetR3GROUPA_PointCount;
  79.    this.SetPointCount=SetR3GROUPA_PointCount;
  80. }
  81.  
  82. r3Group.prototype=new r3Primitive;
  83. // r3group.h_H